package com.mrx.wallabagserver.service;

import com.mrx.wallabagserver.config.Information;
import jakarta.annotation.Resource;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

/**
 * @author Mr.X
 * @since 2024-03-15 09:10
 **/
@Service
public class WallBagService {

    private static final Logger logger = LoggerFactory.getLogger(WallBagService.class);

    @Resource
    private Information information;

    public Information info() {
        logger.info("info: {}", information);
        return information;
    }

    public String version() {
        logger.info("version: {}", information);
        return information.getVersion();
    }

}
